﻿namespace DBCUnit
{

	public class Assertion
	{

		#region Properties

		internal string ComparisonType { get; private set; }

		internal int ActualValue { get; private set; }

		internal int ExpectedValue { get; private set; }

		internal bool IsSatisfied { get; private set; }

		#endregion

		#region Constructor

		internal Assertion(int actualValue)
		{
			ActualValue = actualValue;
		}

		#endregion

		#region Methods

		public void Equals(int expectedValue)
		{
			ComparisonType = "Equals";
			ExpectedValue = expectedValue;
			IsSatisfied = CheckSatisfaction();
		}

		private bool CheckSatisfaction()
		{
			return (ExpectedValue == ActualValue);
		}

		#endregion

	}

}
